package name.fowler.refactoring.simplestore;

public class RegularRental extends Rental {

	public RegularRental(Movie movie, int daysRented) {
		super(movie, daysRented);
	}

	public double getAmount() {
		double thisAmount = 0;
		
		thisAmount += 2;
		if (getDaysRented() > 2) {
			thisAmount += (getDaysRented() - 2) * 1.5;
		}

		return thisAmount;
	}
}
